﻿using Swimj.DomainLib.Entities;

namespace Device.DomainLib.Aggregates
{
    [Table("MES_DEVICE_CATEGORY")]
    public class CategoryAggregate : AuditableAggregateRoot<int>
    {
        public CategoryAggregate()
        {
        
        }
    
        public CategoryAggregate(string? categoryCode, string? categoryName, int? parentId, int sort, string? description)
        {
            CategoryCode = categoryCode;
            CategoryName = categoryName;
            ParentId = parentId;
            Sort = sort;
            Description = description;
        }

        public string? CategoryCode { get; private set; }

        public string? CategoryName { get; private set; }

        public int? ParentId { get; private set; }

        public int Sort { get; private set; }

        public string? Description { get; private set; }
    }
}